package com.pactera.madp.cp.api.entity.taskpublish;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pactera.madp.cp.api.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @date: 2021/8/10 11:01
 * @description:
 */
@Data
@ApiModel(value = "任务实体")
@TableName("cp_task_publish")
public class TaskEntity extends BaseEntity<TaskEntity> {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "序号id")
    private Integer id;

    @ApiModelProperty(value = "创建者")
    private String createUser;

    @ApiModelProperty(value = "类型 1文本、2图片、3图文、4文件")
    @NotNull(message = "类型不能为空")
    private Integer type;//类型 1文本、2图片、3文件、4图文

    @ApiModelProperty(value = "媒体文件标识（有效期3天）")
    private String mediaId;

    @ApiModelProperty(value = "标题")
    private String collectionTitle;

    @ApiModelProperty(value = "内容")
    @NotNull(message = "内容不能为空")
    private String content;

    @ApiModelProperty(value = "发布范围")
    private String publishRange;

    @ApiModelProperty(value = "是否统计")
    private Integer isCount;

    @ApiModelProperty(value = "ids")
    private String ids;

    @ApiModelProperty(value = "发布状态")
    private Integer status;

    @ApiModelProperty(value = "企业id")
    private Integer corpId;

}
